home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
54038
/
54038.xpi
/
chrome
/
script.js
< prev
next >
Wrap
Text File
|
2009-12-10
|
571b
|
15 lines
StartRefChange = {
1: function () {
xprefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("");
if(xprefs.getIntPref("network.http.sendRefererHeader")=="0"){
xprefs.setIntPref("network.http.sendRefererHeader","2");
document.getElementById('btnstyle').image = "chrome://blockmyreferer/content/ref_btn_1.png";
}else{
xprefs.setIntPref("network.http.sendRefererHeader","0");
document.getElementById('btnstyle').image = "chrome://blockmyreferer/content/ref_btn_2.png";
}
},
}